package com.hrms.hrms_employee.dao;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hrms.hrms_employee.vo.CheckVO;
import com.hrms.hrms_employee.vo.EmployeeExportDTO;
import com.hrms.hrms_employee.vo.SysUsr;
import com.hrms.hrms_employee.vo.staffDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.hrms.hrms_employee.entity.StaffDetail;

/**
 * 员工个人信息表(StaffDetail)表数据库访问层
 *
 * @author makejava
 * @since 2025-01-17 17:14:23
 */
@Mapper
public interface StaffDetailDao extends BaseMapper<StaffDetail> {

/**
* 批量新增数据（MyBatis原生foreach方法）
*
* @param entities List<StaffDetail> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<StaffDetail> entities);

/**
* 批量新增或按主键更新数据（MyBatis原生foreach方法）
*
* @param entities List<StaffDetail> 实例对象列表
* @return 影响行数
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常，请自行校验入参
*/
int insertOrUpdateBatch(@Param("entities") List<StaffDetail> entities);

    staffDetailVO SelectStaffDetail(@Param("id") Long id);

    List<EmployeeExportDTO> selectExportData();

    SysUsr selectSysUsrById(@Param("id") long parseLong);

//    void check(@Param("entity") CheckVO checkVO);

    List<CheckVO> selectCheck(@Param("id") Long userId, @Param("date") Date date);
}

